﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using LuxDiner.Model.Accounts;
using LuxDiner.Command.Accounts;
namespace LuxDiner.Logic.Accounts
{
    public class RoleLogic
    {
        public static RoleModel CreateNewRole(RoleModel role)
        {
            return RoleCommand.CreateNewRole(role);
        }

        public static void UpdateRole(RoleModel role)
        {
            RoleCommand.UpdateRole(role);
        }

        public static RoleModel GetRole(int roleID)
        {
            return RoleCommand.GetRole(roleID);
        }
        public static RoleModel GetRole(string rolename)
        {
            return RoleCommand.GetRole(rolename);
        }

        public static RoleCollection GetAllRoles()
        {
            return RoleCommand.GetAllRoles();
        }

        public static RoleCollection GetRolesForUser(string userName)
        {
            return RoleCommand.GetRolesForUser(userName);
        }

        public static bool RoleExists(string roleName)
        {
            return RoleCommand.RoleExists(roleName);
        }
    }
}
